{template header}
<link href="{SITE_URL}public/bootstrap-datetimepicker/bootstrap-datetimepicker.css" rel="stylesheet" media="screen">
<script type="text/javascript" src="{SITE_URL}public/bootstrap-datetimepicker/bootstrap-datetimepicker.js" charset="UTF-8"></script>
<script type="text/javascript" src="{SITE_URL}public/bootstrap-datetimepicker/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></script>
<script type="text/javascript" src="{SITE_URL}public/js/city/jquery.cityselect.js"></script>
<script type="text/javascript">
  var city1 = "{$strUser['province']}";
  if(city1==''){city1 = '北京';}
  var city2 = "{$strUser['city']}";
  if(city2==''){city2 = '朝阳区';}

  $(function(){
    $("#city_3").citySelect({
      prov:city1,
      city:city2
    });

  });
</script>

<div class="container">
<div class="row">
<div>
    <div class="panel panel-default">
        <div class="panel-body">
{template setting_menu}
<div style="height:30px;"></div>

<div class="row">
  <div class="col-md-1"></div>
  <div class="col-md-7">
  
<form role="form" method="POST" action="{tsUrl('my','setting',array('ts'=>'basedo'))}">

  <div class="form-group">
    <label>姓名<sup><i class="fa fa-asterisk" style="color:red"></i></sup>：</label>
	<input type="text" class="form-control" name="username" value="{$strUser[username]}"  />
  </div>
  <div class="form-group">
    <label>身份证号（或护照号等）<sup><i class="fa fa-asterisk" style="color:red"></i></sup>：</label>

    <input type="text"  class="form-control" name="idcard" id="idcard" value="{$strUser[idcard]}"  />
  </div>
  <div class="form-group">
    <label>生日：</label>
    <input class="form-control" id="birth" name="birth" readonly value="{php echo date('Y-m-d',$strUser[birth])}"  >
  </div>

  <div class="form-group">
    <label>性别：</label>
<input {if $strUser['sex']=='男'}checked="select"{/if} name="sex" type="radio" value="男" />男
<input {if $strUser['sex']=='女'}checked="select"{/if} name="sex" type="radio" value="女" />女
  </div>
  
  
  <div class="form-group">
    <label>电话<sup><i class="fa fa-asterisk" style="color:red"></i></sup>：</label>

	<input type="phone"  class="form-control" name="phone" value="{$strUser[phone]}"  />
  </div>

  <div class="form-group">
    <label>身份：</label>
    <select id='comefrom' name="comefrom" class="form-control">
      <option value=""></option>
      <option value="1" {if $strUser['comefrom']==1}selected{/if}>自由职业</option>
      <option value="2" {if $strUser['comefrom']==2}selected{/if}>退休人士</option>
      <option value="3" {if $strUser['comefrom']==3}selected{/if}>在职人士</option>
      <option value="4" {if $strUser['comefrom']==4}selected{/if}>在校学生</option>
    </select>
  </div>


  <div class="form-group">
    <label>常住地：</label>

    <div id="city_3">
      <p><select name="province" class="prov form-control">{$strUser['province']}</select></p>
      <p><select name="city" class="city form-control" disabled="disabled">{$strUser['city']}</select></p>
    </div>

  </div>

  <div class="form-group">
    <label>所属组织<sup><i class="fa fa-asterisk" style="color:red"></i></sup>：</label>
    <select id='orgid' name="orgid" class="form-control">
      <option value=""></option>

      {loop $arrOrg $key $item}
      <option value="{$item['orgid']}" {if $strUser['orgid']==$item['orgid']}selected{/if}>{$item['orgname']}</option>
      {/loop}
      <option value="1000">不在选项中</option>
    </select>
  </div>



    <div class="form-group">
      <label>技能：</label>
      <br><input {if substr_count($strUser['skill'],'1')>0}checked{/if} type="checkbox" name="skill[]" value="1" />组织管理或商务
      <br><input {if substr_count($strUser['skill'],'2')>0}checked{/if} type="checkbox" name="skill[]" value="2" />音乐或舞台艺术
      <br><input {if substr_count($strUser['skill'],'3')>0}checked{/if} type="checkbox" name="skill[]" value="3" />绘画、设计或摄影
      <br><input {if substr_count($strUser['skill'],'4')>0}checked{/if} type="checkbox" name="skill[]" value="4" />编程或工程技术
      <br><input {if substr_count($strUser['skill'],'4')>0}checked{/if} type="checkbox" name="skill[]" value="5" />采编和写作
    </div>

  <div class="form-group">
    <label>如何知道微澜的<sup><i class="fa fa-asterisk" style="color:red"></i></sup>：</label>
    <textarea class="form-control" rows="2" name="how">{$strUser[how]}</textarea>
  </div>

  <div class="form-group">
    <label>自我介绍<sup><i class="fa fa-asterisk" style="color:red"></i></sup>：</label>
	<textarea class="form-control" rows="5" name="about">{$strUser[about]}</textarea>
  </div>
  


<input type="hidden" name="token" value="{$_SESSION['token']}" />
<button class="btn btn-success" type="submit">修改设置</button>
</form>
  
  
  </div>
  <div class="col-md-4"></div>
</div>




</div>
</div>
</div>


</div>
</div>

<script>

  $('#birth').datetimepicker({
    language:  'zh-CN',
    format: 'yyyy-mm-dd',
    autoclose: true,
    minView:2
  });
</script>
{template footer}